﻿using System;
using System.Collections.Generic;
using Caliburn.Micro;
using Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace Bazookabird.Wpf.Model
{
	[Serializable]
    public class WorkItemNode : PropertyChangedBase
    {
        private WorkItem _workItem;
        public virtual WorkItem WorkItem
        {
            get { return _workItem; }
            set
            {
                _workItem = value;
                NotifyOfPropertyChange(() => WorkItem);
            }
        }

        private string _relationshipToParent;
        public virtual string RelationshipToParent
        {
            get { return _relationshipToParent; }
            set
            {
                _relationshipToParent = value;
                NotifyOfPropertyChange(() => RelationshipToParent);
            }
        }

        private List<WorkItemNode> _children;
        public virtual List<WorkItemNode> Children
        {
            get { return _children; }
            set
            {
                _children = value;
                NotifyOfPropertyChange(() => Children);
            }
        }
    }
}